package com.meilai.project.service.business.offer;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.entity.business.offer.Offer;
import com.meilai.project.vo.business.offer.OfferQueryVO;
import com.meilai.project.vo.business.offer.OfferVO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 报价表 服务类
 * </p>
 *
 * @author xhy
 * @since 2022-01-11
 */
public interface OfferService extends IService<Offer> {

    List<Map<String, Object>> page(Long industry_id);

    /**
     * 获取媒体信息
     *
     * @return
     */
    List<Map<String, String>> getMediaList();

    /**
     * 获取所有媒体类型的刊例总价
     *
     * @param mediaTypeId
     * @param is_media
     * @return
     */
    List<OfferVO> getOfferList(Long mediaTypeId, Integer is_media);

    /**
     * 修改刊例总价
     *
     * @param offer
     * @return
     */
    Boolean edit(Offer offer);

    Boolean settingsRedLinePrice(Long industry_id, Long media_type_spec_id, BigDecimal red_line_price);

    List<OfferQueryVO> queryByIndustryId(Long industry_id);
}
